package com.junchenrobot.mes.controller;


import com.junchenrobot.mes.response.BaseResponse;
import com.junchenrobot.mes.service.InputTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 装载任务 前端控制器
 *
 * @author SeaWave
 * @since 2022-10-25
 */
@RestController
@RequestMapping("/mes/input-task")
public class InputTaskController {
    
    private final InputTaskService inputTaskService;
    
    @Autowired
    public InputTaskController(InputTaskService inputTaskService) {
        this.inputTaskService = inputTaskService;
    }
    
    @GetMapping("/start-pole")
    public BaseResponse startPushPole(@RequestParam("start") Integer start) {
        return inputTaskService.startPole(start);
    }
    
    
}

